package com.zhang.service.Circular_dependency;

import com.myspring.anno.MyComponent;
import com.myspring.aware.BeanPostProcessor;


//@MyComponent
public class ZhangBeanPostProcessor implements BeanPostProcessor {
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {

        // 初始化前，对bean进行处理
//         if (bean instanceof ClassA) {
//             System.out.println("ZhangBeanPostProcessor =============== 初始化前");
//         }
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {

//        if (bean instanceof ClassA) {
//            System.out.println("ZhangBeanPostProcessor =============== 初始化后");
//        }



        return bean;
    }

}
